<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page import="model.*,util.*"%>
<%
	PhaseModel obj;
	Object temp = request.getAttribute("phase");
	if (temp != null) {
		try {
			obj = (PhaseModel) temp;
		} catch (Exception ex) {
			obj = new PhaseModel();
		}
	} else {
		obj = new PhaseModel();
	}
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Update phase</title>

<link rel="stylesheet" href="css/common.css" />
<link rel="stylesheet" href="css/jquery-ui-1.8.14.custom.css"
	type="text/css" />
<link rel="stylesheet" href="css/jquery-ui-timepicker.css"
	type="text/css" />
<link rel="stylesheet" href="css/hyjack.css" type="text/css" />
<link rel="stylesheet" href="css/datepicker.css" />

<script language="javascript" type="text/javascript"
	src="js/datepicker.js"></script>
<script language="javascript" type="text/javascript" src="js/common.js"></script>
<script language="javascript" type="text/javascript"
	src="js/jquery.min.js"></script>
<script language="javascript" type="text/javascript"
	src="js/jquery-1.5.1.min.js"></script>
<script language="javascript" type="text/javascript"
	src="js/jquery.hyjack.select.js"></script>
<script language="javascript" type="text/javascript"
	src="js/jquery.ui.core.min.js"></script>
<script language="javascript" type="text/javascript"
	src="js/jquery.ui.widget.min.js"></script>

<script language="javascript" type="text/javascript"
	src="js/jquery.ui.timepicker.js"></script>
<script language="javascript" type="text/javascript"
	src="js/datepicker.js"></script>
<script language="javascript" type="text/javascript"
	src="js/jquery.hyjack.js"></script>
<script language="javascript" type="text/javascript"
	src="js/ajaxQuickInsert.js"></script>

<link rel="stylesheet" href="css/inputForm.css" />

</head>
<body>
	<%@ include file="menu.jsp"%>
	<br />
	<table class="tblInput" border="1">
		<tr class="inputHeader">
			<th colspan="3" class="inputHeader">Phase Information</th>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Id</td>
			<td class="tdFieldInput"><input class="lblInt" type="text"
				id="id" name="id" readonly="readonly"
				value="<%=obj.getIdToString()%>" /></td>
			<td class="tdErrMsg"></td>
		<tr class="trField">
			<td class="tdFieldName">Name</td>
			<td class="tdFieldValue"><span class="lblText"><%=obj.getNameToString()%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Code</td>
			<td class="tdFieldValue"><span class="lblText"><%=obj.getCodeToString()%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Description</td>
			<td class="tdFieldInput"><textarea id="description"
					name="description" rows="5" class="lblTextarea" readonly="readonly"><%=obj.getDescriptionToString()%></textarea>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Id Project</td>
			<td class="tdFieldValue"><span class="lblInt"><%=obj.getIdProjectToString()%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Status</td>
			<td class="tdFieldValue"><span class="lblInt"><%=obj.getStatusToString()%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Plan Start Date</td>
			<td class="tdFieldValue"><span class="lblDateTime"><%=StringUtil.toDateTimeString(obj.getPlanStartDate())%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Plan End Date</td>
			<td class="tdFieldValue"><span class="lblDateTime"><%=StringUtil.toDateTimeString(obj.getPlanEndDate())%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Real Start Date</td>
			<td class="tdFieldValue"><span class="lblDateTime"><%=StringUtil.toDateTimeString(obj.getRealStartDate())%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Real End Date</td>
			<td class="tdFieldValue"><span class="lblDateTime"><%=StringUtil.toDateTimeString(obj.getRealEndDate())%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Created</td>
			<td class="tdFieldValue"><span class="lblDateTime"><%=StringUtil.toDateTimeString(obj.getCreated())%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Creator</td>
			<td class="tdFieldValue"><span class="lblInt"><%=obj.getCreatorToString()%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Updated</td>
			<td class="tdFieldValue"><span class="lblDateTime"><%=StringUtil.toDateTimeString(obj.getUpdated())%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Updator</td>
			<td class="tdFieldValue"><span class="lblInt"><%=obj.getUpdatorToString()%></span>
			</td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Deleted</td>
			<td class="tdFieldValue">
				<table class="tblBool">
					<tr class="trBoolSet">
						<td colspan="2" class="tdBoolSet"><input type="checkbox"
							id="ckb_deleted" name="ckb_deleted"
							onchange="toggleControls(['deleted_true', 'deleted_false'])" />Not
							set</td>
					</tr>
					<tr class="trBool">
						<td class="tdBool"><input type="radio" id="deleted_true"
							name="deleted" value="1" checked="checked" />Yes</td>
						<td class="tdBool"><input type="radio" id="deleted_false"
							name="deleted" value="0" />No</td>
					</tr>
				</table>
			</td>
			<td class="tdErrMsg"></td>
		</tr>
		<tr class="trField">
			<td class="tdFieldName">Deletion Time</td>
			<td class="tdFieldValue"><span class="lblDateTime"><%=StringUtil.toDateTimeString(obj.getDeletionTime())%></span>
			</td>
		</tr>

		<!--
		<tr class="trInputBottom">
			<td class="trInputBottom" colspan="3">
				<table class="tblSubmit" align="center">
					<tr class="trSubmit">
						<td class="tdSubmit">
							<input type="submit" value="Edit" />
						</td>
					</tr>
				</table></td>
		</tr>
-->
	</table>
	<br />
	<jsp:include page="phaseList.jsp?embedded=true"></jsp:include>
</body>
</html>